using System;
using System.Collections.Generic;

namespace Sayook.Framework.TemplateApi
{
    public class WeatherForecast
    {
        /// <summary>
        /// Date
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// TemperatureC
        /// </summary>
        public int TemperatureC { get; set; }

        /// <summary>
        /// TemperatureF
        /// </summary>
        public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

        /// <summary>
        /// Summary
        /// </summary>
        public string Summary { get; set; }
    }

    public class TemplateApiCode
    {
        public static Dictionary<string, int> KeyValues = new Dictionary<string, int> {
            {"test/loging",1000 },
            {"test/get",1001 },
        };
    }

    public class UserInfo
    {
        public string Name { get; set; }

        public string Password { get; set; }
    }
}